package com.crm.base;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Xanny
 */
@Data
@TableName(value = "user",autoResultMap = true)
public class UserVo implements Serializable {
    private Long Id;

    private String userName;

    private String nickName;

    private String password;

    private String userType;

    private String avatar;

    private String email;

    private String realName;

    private String mobile;

    private Character sex;

    private String deptNo;

    private String postNo;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private String createBy;

    private String updateBy;

    private Integer delFlag;

    @ApiModelProperty(value = "用户令牌")
    private String token;
    /*
    该用户的部门信息
     */
//    @TableField(typeHandler = JacksonTypeHandler.class)
//    private Dept dept;

    /*
     该用户的部门信息
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private Role roles;

}